package Ch4;

/**
 * Created by Cai Ye on 2016/3/25.
 */
public class OceanWorld3Seaplane implements OceanWorld1Swimmer, OceanWorld3Flyer {
    private String name;

    public OceanWorld3Seaplane(String name) {
        this.name = name;
    }

    @Override
    public void fly() {
        System.out.printf("海上飞机 %s 在飞%n", name);
    }

    @Override
    public void swim() {
        System.out.printf("海上飞机 %s 航行海面%n", name);
    }
}


